package com.qinggeng.project.system.controller;


import com.qinggeng.framework.web.domain.AjaxResult;
import com.qinggeng.project.system.domain.GsdRequestUrl;
import com.qinggeng.project.system.service.GsdRequestUrlService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/system/getGsdRequestUrl")
@CrossOrigin
public class GsdRequestUrlController {
    @Resource
    private GsdRequestUrlService gsdRequestUrlService;

    @GetMapping("/list")
    public AjaxResult list(){
      List<GsdRequestUrl>  list=gsdRequestUrlService.list();
        return AjaxResult.success(list);
    }


    @PostMapping("/updateRequestUrl")
    public AjaxResult updateRequestUrl(GsdRequestUrl gsdRequestUrl){
        gsdRequestUrlService.updateRequestUrl(gsdRequestUrl);
        return AjaxResult.success();
    }
}
